﻿using Bing.Aspects;

namespace Bing.Data.Sql.Matedatas;

/// <summary>
/// 实体元数据
/// </summary>
[Ignore]
public interface IEntityMatedata
{
    /// <summary>
    /// 获取表名
    /// </summary>
    /// <param name="type">实体类型</param>
    string GetTable(Type type);

    /// <summary>
    /// 获取架构
    /// </summary>
    /// <param name="type">实体类型</param>
    string GetSchema(Type type);

    /// <summary>
    /// 获取列名
    /// </summary>
    /// <param name="type">实体类型</param>
    /// <param name="property">属性名</param>
    string GetColumn(Type type, string property);
}
